/***
 * 想象成链表的结点Node类
 */

public class EntryDemo<K,V> {
    K key;
    V value;
    EntryDemo<K,V> next;

    public EntryDemo(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public V getValue() {
        return value;
    }
}
